package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 学生助学贷款金额表
 * </p>
 *
 * @author XYHT
 * @since 2024-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_wns_student_loan_amount")
@ApiModel(value="SmsWnsStudentLoanAmount对象", description="学生助学贷款金额表")
public class SmsWnsStudentLoanAmount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生助学贷款金额id")
    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "学生id")
    private String stuId;

    @ApiModelProperty(value = "申请表id集合")
    private String applyIdList;

    @ApiModelProperty(value = "贷款余额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "已使用金额")
    private BigDecimal usedAmount;

    @ApiModelProperty(value = "核销金额")
    private BigDecimal writeOffAmount;

    @ApiModelProperty(value = "分配收费项id集合")
    private String statusIdList;

    @ApiModelProperty(value = "版本号")
    @TableField("version")
    @Version
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
